﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel.Activation;
using System.ServiceModel;
using Microsoft.IdentityModel.Tokens;

namespace Veracruz.ServiceModel
{
    public class IdentityModelServiceHostFactory : ServiceHostFactory
    {
        public override ServiceHostBase CreateServiceHost(string constructorString, Uri[] baseAddresses)
        {
            ServiceHostBase l_host = base.CreateServiceHost(constructorString, baseAddresses);
            FederatedServiceCredentials.ConfigureServiceHost(l_host);
            return l_host;
        }
    }
}
